public class Student {
    private final String name;
    private final String studentId;
    private final String className;
    private final String gender;
    private final int age;
    private final String personality;

    // 构造方法
    public Student(String name, String studentId, String className, String gender, int age, String personality) {
        this.name = name;
        this.studentId = studentId;
        this.className = className;
        this.gender = gender;
        this.age = age;
        this.personality = personality;
    }

    // 获取姓名
    public String getName() {
        return name;
    }

    // 获取学号
    public String getStudentId() {
        return studentId;
    }

    // 获取班级
    public String getClassName() {
        return className;
    }

    // 获取性别
    public String getGender() {
        return gender;
    }

    // 获取年龄
    public int getAge() {
        return age;
    }

    // 获取性格
    public String getPersonality() {
        return personality;
    }

    // 信息概要
    public String getSummary() {
        return "姓名：" + name + ", 学号：" + studentId + ", 班级：" + className + ", 性别：" + gender + ", 年龄：" + age + ", 性格：" + personality;
    }

    // 主方法，用于创建学生对象并输出信息概要
    public static void main(String[] args) {
        Student student1 = new Student("张三", "001", "一班", "男", 20, "开朗");
        Student student2 = new Student("李四", "002", "二班", "女", 19, "文静");
        Student student3 = new Student("王五", "003", "三班", "男", 21, "活泼");

        System.out.println(student1.getSummary());
        System.out.println(student2.getSummary());
        System.out.println(student3.getSummary());
    }
}